<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ include file="/WEB-INF/jsp/includes/common.jsp"%>
<html>
	<head>
		  <%@ include file="/WEB-INF/jsp/includes/head.jsp"%>
		<!--[if IE]>
   			<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/kindeditor-all-min.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.messages_cn.js"></script>
		<script type="text/javascript" src="${ctx }/js/base/validateinfo.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.ajaxfileupload.js"> </script>
		<script type="text/javascript" src="${ctx }/js/award/awardupdate.js"></script>
	</head>
	<body>
		<%@ include file="/WEB-INF/jsp/includes/logo.jsp"%>
		<div class="container">
			<div class="main clearfix">
				<%@ include file="/WEB-INF/jsp/includes/nav.jsp"%>
				<div class="container2 fl">
					<div class="main">
						<h4 class="mb10"><span><a href="${ctx }/activity/index.do">活动列表</a>&nbsp;>&nbsp;</span><span><a href="${ctx }/award/index.do?activeId=${activeId}">活动奖品</a>&nbsp;>&nbsp;</span><span class="fb">编辑奖品</span></h4>
						<div class="content-wraper">
						<form action="${ctx }/award/updateAward.do" id="updateAwardForm" enctype="multipart/form-data" method="post">
							<p class="validate-tips"></p>
							<section class="award-baseinfo">
								<div class="title pl10">
									<h5>奖品基本信息</h5>
								</div>
								<div class="content">
									<input type="hidden" name="activeId" value="${activeId}" id="activeId"/>
									<div class="upload-img-wraper">
										<div class="upload-img">
											<img src="${award.image }" width="110" height="110" id="showAward"/>
											<input type="file" value="选择图片" name="awardImage" id="awardImage"  />
											<input type="hidden" name="awardImageUrl" id="awardImageUrl" value="${award.image }"/>
										</div>
										<div class="ml20 mt10">
											<input type="button" value="上传" name="awardImageUpload" id="awardImageUpload" class="btn btn3"/></div>
										<div>
											<i>&nbsp;*&nbsp;文件名称不要有中文</i>
											<p><i>选择完图片后请点击上传</i></p>
										</div>
									</div>
									<div class="item">
										<label><i>*</i>奖品：</label>
										<input type="text" id= "awardName" name="awardName" value="${award.name }"/>
									</div>
									<div class="item">
										<label><i>*</i>奖品类型：</label>
										<select id="type" name="type">
											<nad:option name="type" list="#{'':-请选择-,1:实物奖品,2:虚拟奖品,3:G币,4:经验值}" />
										</select>
									</div>
									<div class="item">
										<label><i>*</i>奖品分类：</label>
										<select class="w210" id="minitype" name="minitype" >
											<nad:option name="minitype" list="#{'':-请选择-,1:数码奖品,2:游戏周边,3:虚拟货币（各种点卡，Q币，G币）,4:游戏特权（各种礼包，激活码）,5:游戏道具（如xxCDK等）,6:其他（经验值等）}" />
										</select>
									</div>
									<div class="item">
										<label>使用地址：</label>
										<input type="text" id= "useAdd" name="useAdd"  value="${award.url }"/>
									</div>
									<div class="item clearfix" style="overflow: hidden;">
										<label class="mr05">物品使用说明：</label>
										<div class="mt05">
											<textarea name="memo" id="memo" style="width:490px;">${award.memo}</textarea>
											<span class="fr txtno">使用说明字数：<span id="memoHtmlCount" style="color: red;"></span></span>
										</div>
										<input type="hidden" id="memoCount"></input>
										<input type="hidden" id="memoHtml" name="memoHtml"/>
									</div>
									<input type="hidden" id="hiType" name="hiType" value="${award.type}"/>
									<input type="hidden" id="hiMinitype" name="hiMinitype" value="${award.channel}"/>
									<input type="hidden" name="awardID" id="awardID" value="${award.id }"/>
								</div>
							</section>
							<div class="oper-row mt20">
								<input type="button" id="updateAwardButton" name="updateAwardButton" class="btn-save btn btn2 none-underline" value="保存"/>
								<input type="button" class="btn-cancel btn btn3 none-underline" onclick="window.location.href='${ctx }/award/index.do?activeId=${activeId }'" value="取消"/>
							</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>


